/**
 * 
 */
package com.lanswon.dao;

import java.util.List;
import java.util.Map;

import org.springframework.data.repository.query.Param;

import com.lanswon.entity.UserVO;

/**
 * @author lanswon
 *
 */
public interface UserMapper {

	int deleteByPrimaryKey(Long userId);

	int insert(UserVO record);

	int insertSelective(UserVO record);

	UserVO selectByPrimaryKey(Long userId);

	int updateByPrimaryKeySelective(UserVO record);

	int updateByPrimaryKey(UserVO record);

	UserVO getUserByName(String userName);

	List<UserVO> load(int pageindex, Integer limit);

	List<UserVO> loadByCondition(@Param("pageindex") Integer pageindex, @Param("limit") Integer limit,
			@Param("type") String type, @Param("content") String content);

	int count();

	int countByCondition(String type, String content);

	void forbidden(Long userId);

	void restart(Long userId);

	UserVO findUserByMobile(String mobile);

	UserVO selectUserByCondition(Map<String, Object> map);

	UserVO selectUserByNameOrPassword(Map<String, Object> map);

	void deleteUserByMobile(String mobile);

	void updateUserByMobile(Map<String, Object> map);

	UserVO selectUserByIdNo(String idNum);

}
